package cn.tedu.adminbanner.service.impl;

import cn.tedu.adminbanner.mapper.BannerMapper;
import cn.tedu.adminbanner.pojo.vo.BannerVO;
import cn.tedu.adminbanner.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerService implements IBannerService {
    @Autowired
    BannerMapper mapper;
    @Override
    public List<BannerVO> list() {
        return mapper.select();
    }

    @Override
    public void deleteById(Long id) {
        mapper.delectById(id);
    }
}
